<template>
	<view>
		<swiper class="swiper" circular :indicator-dots="true" :autoplay="true" :interval="2000"
			:duration="500">
			<swiper-item v-for="item in list" :key="item">
				<image :src="item"></image>
			</swiper-item>
		</swiper>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: []
			}
		},
		onLoad() {
			uni.request({
				url: "http://www.pudge.wang:4000/home/banner",
				data: {},
				method: "GET",
				success: (res) => {
					console.log(res.data.result.list);
					this.list = res.data.result.list
				}
			})
		},
		methods: {

		}
	}
</script>

<style>
</style>
